package 策略设计模式;

public class Test {
    public static void main(String[] args) {
        Customer customer = new Customer();
        customer.setPay(new PtPay());
        customer.pay(100);

        customer.setPay(new CjPay());
        customer.pay(100);

        customer.setPay(new GjPay());
        customer.pay(100);

        customer.setPay(new BtPay());
        customer.pay(100);
    }
}
